/**
 * 
 */
package com.nd.android.payment.ui.param;

import java.util.ArrayList;

import antistatic.spinnerwheel.AbstractWheel;
import antistatic.spinnerwheel.OnWheelScrollListener;

import com.nd.android.payment.ui.dialog.CommonRechargeDlg.OnCommonRechargeClickListener;


/**
 * 
 * <br>Created 2014-11-4 下午2:44:34
 * @version  
 * @author   zhangqr		
 *
 * @see 	 
 */

public class CommonRecharge implements ICommonRecharge {
    
    /** 标题 */
    private String mStrTitle;
    
    /**
     * 标题 - 剩余的提示
     */
    private String mStrTitleRest;
    
    /**
     * 标题 - 兑换率的提示
     */
    private String mStrTitleRate;

    /** 滚动框里面默认显示第几个 */
    private int mIntDefaultItemIndex;

    /** 剩余币种数量的提示 */
    private String mStrRestTip;

    /** 兑换率提示 */
    private String mStrRateTip;

    /** 提示 */
    private String mStrTip;

    /** 左按钮文本 */
    private String mStrBtnLeft;

    /** 右按钮文本 */
    private String mStrBtnRight;

    /** 所加载的layout资源ID */
    private int mLayoutResID;
    
    /** 是否显示滚动框 */
    private boolean mIsShowWheelView = true;

    /** 滚动框显示数据 */
    private ArrayList<Object> mDataList = new ArrayList<Object>();
    
    /** 按钮点击监听 */
    private OnCommonRechargeClickListener mListener;
    
    /** 滚动框滚动监听 */
    private OnWheelScrollListener mWheelScrollListener;
    
    /**
     * 当操作结束时是否关闭窗口
     */
    private boolean isDismissWhenDone = true;
    
    /**
     * 实例化
     * Creates a new instance of CommonRecharge.
     * <br>Created 2014-11-7 下午3:32:04
     */
    public CommonRecharge() {
        mListener = new OnCommonRechargeClickListener() {
            
            @Override
            public void onRightBtnClicked(int count) {
                // TODO Auto-generated method stub
                
            }
            
            @Override
            public void onLeftBtnClicked() {
                // TODO Auto-generated method stub
                
            }
        };
        
        mWheelScrollListener = new OnWheelScrollListener() {
            
            @Override
            public void onScrollingStarted(AbstractWheel wheel) {
                // TODO Auto-generated method stub
                
            }
            
            @Override
            public void onScrollingFinished(AbstractWheel wheel) {
                // TODO Auto-generated method stub
                
            }
        };
    }

    /**
     * 设置标题
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @param mStrTitle
     *            标题
     * @author zhangqr
     */
    public void setmStrTitle(String mStrTitle) {
        this.mStrTitle = mStrTitle;
    }
    
    /**
     * 设置滚动框里面默认显示第几个
     * 
     * <br>
     * Created 2014-11-3 下午8:41:50
     * 
     * @param mIntDefaultItemIndex
     *            滚动框里面默认显示第几个
     * @author zhangqr
     */
    public void setmIntDefaultItemIndex(int mIntDefaultItemIndex) {
        this.mIntDefaultItemIndex = mIntDefaultItemIndex;
    }
    
    /**
     * 设置剩余币种数量的提示
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @param mStrRestTip
     *            剩余币种数量的提示
     * @author zhangqr
     */
    public void setmStrRestTip(String mStrRestTip) {
        this.mStrRestTip = mStrRestTip;
    }
    
    /**
     * 设置兑换率提示
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @param mStrRateTip
     *            兑换率提示
     * @author zhangqr
     */
    public void setmStrRateTip(String mStrRateTip) {
        this.mStrRateTip = mStrRateTip;
    }
    
    /**
     * 设置提示
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @param mStrTip
     *            提示
     * @author zhangqr
     */
    public void setmStrTip(String mStrTip) {
        this.mStrTip = mStrTip;
    }
    
    /**
     * 设置左按钮文本
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @param mStrBtnLeft
     *            左按钮文本
     * @author zhangqr
     */
    public void setmStrBtnLeft(String mStrBtnLeft) {
        this.mStrBtnLeft = mStrBtnLeft;
    }

    /**
     * 设置左按钮文本
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @param mStrBtnRight
     *            左按钮文本
     * @author zhangqr
     */
    public void setmStrBtnRight(String mStrBtnRight) {
        this.mStrBtnRight = mStrBtnRight;
    }

    /**
     * 设置所加载的layout资源ID
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @param mLayoutResID
     *            所加载的layout资源ID
     * @author zhangqr
     */
    public void setmLayoutResID(int mLayoutResID) {
        this.mLayoutResID = mLayoutResID;
    }

    /**
     * 设置滚动框显示数据
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @param mDataList
     *            滚动框显示数据
     * @author zhangqr
     */
    public void setmDataList(ArrayList<Object> mDataList) {
        this.mDataList = mDataList;
    }
    
    /**
     * 设置按钮点击监听
     *
     * <br>Created 2014-11-4 上午11:42:12
     * @param   mListener    the mListener to set
     * @author       zhangqr
     */
    public void setmListener(OnCommonRechargeClickListener mListener) {
        this.mListener = mListener;
    }
    
    /**
     * 设置滚动框滚动监听
     *
     * <br>Created 2014-11-4 上午11:42:12
     * @param   mWheelScrollListener    the mWheelScrollListener to set
     * @author       zhangqr
     */
    public void setmWheelScrollListener(OnWheelScrollListener mWheelScrollListener) {
        this.mWheelScrollListener = mWheelScrollListener;
    }
    
    
    /**
     * 获得标题
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @return 标题
     * @author zhangqr
     */
    public String getmStrTitle() {
        return mStrTitle;
    }

    /**
     * 获得滚动框里面默认显示第几个
     * 
     * <br>
     * Created 2014-11-3 下午8:41:50
     * 
     * @return 滚动框里面默认显示第几个
     * @author zhangqr
     */
    public int getmIntDefaultItemIndex() {
        return mIntDefaultItemIndex;
    }

    /**
     * 获得剩余币种数量的提示
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @return 剩余币种数量的提示
     * @author zhangqr
     */
    public String getmStrRestTip() {
        return mStrRestTip;
    }

    /**
     * 获得兑换率提示
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @return 兑换率提示
     * @author zhangqr
     */
    public String getmStrRateTip() {
        return mStrRateTip;
    }

    /**
     * 获得提示
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @return 提示
     * @author zhangqr
     */
    public String getmStrTip() {
        return mStrTip;
    }

    /**
     * 获得左按钮文本
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @return 左按钮文本
     * @author zhangqr
     */
    public String getmStrBtnLeft() {
        return mStrBtnLeft;
    }

    /**
     * 获得右按钮文本
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @return 右按钮文本
     * @author zhangqr
     */
    public String getmStrBtnRight() {
        return mStrBtnRight;
    }
    
    /**
     * 获得所加载的layout资源ID
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @return 所加载的layout资源ID
     * @author zhangqr
     */
    public int getmLayoutResID() {
        return mLayoutResID;
    }
    
    /**
     * 获得滚动框显示数据
     * 
     * <br>
     * Created 2014-11-3 下午7:53:15
     * 
     * @return 滚动框显示数据
     * @author zhangqr
     */
    public ArrayList<Object> getmDataList() {
        return mDataList;
    }
    
    /**
     * 获取按钮点击监听
     *
     * <br>Created 2014-11-4 上午11:42:12
     * @return       mListener
     * @author       zhangqr
     */
    public OnCommonRechargeClickListener getmListener() {
        return mListener;
    }

    /**
     * 获取滚动框滚动监听
     *
     * <br>Created 2014-11-4 上午11:42:12
     * @return       mWheelScrollListener
     * @author       zhangqr
     */
    public OnWheelScrollListener getmWheelScrollListener() {
        return mWheelScrollListener;
    }

    
    /**
     * isDismissWhenDone
     *
     * <br>Created 2014-11-4 下午8:32:28
     * @return       isDismissWhenDone
     * @author       zhangqr
     */
    public boolean isDismissWhenDone() {
        return isDismissWhenDone;
    }

    
    /**
     * setDismissWhenDone
     *
     * <br>Created 2014-11-4 下午8:32:28
     * @param   isDismissWhenDone    the isDismissWhenDone to set
     * @author       zhangqr
     */
    public void setDismissWhenDone(boolean isDismissWhenDone) {
        this.isDismissWhenDone = isDismissWhenDone;
    }

    
    /**
     * 是否显示滚动框
     *
     * <br>Created 2014-11-7 上午10:54:06
     * @return       mIsShowWheelView
     * @author       zhangqr
     */
    public boolean ismIsShowWheelView() {
        return mIsShowWheelView;
    }

    
    /**
     * 是否显示滚动框
     *
     * <br>Created 2014-11-7 上午10:54:06
     * @param   mIsShowWheelView    the mIsShowWheelView to set
     * @author       zhangqr
     */
    public void setmIsShowWheelView(boolean mIsShowWheelView) {
        this.mIsShowWheelView = mIsShowWheelView;
    }

    /**
     * 获取标题 - 剩余的提示
     *
     * <br>Created 2014-11-10 下午2:44:47
     * @return       mStrTitleRest
     * @author       zhangqr
     */
    public String getmStrTitleRest() {
        return mStrTitleRest;
    }

    
    /**
     * 设置标题 - 剩余的提示
     *
     * <br>Created 2014-11-10 下午2:44:47
     * @param   mStrTitleRest    the mStrTitleRest to set
     * @author       zhangqr
     */
    public void setmStrTitleRest(String mStrTitleRest) {
        this.mStrTitleRest = mStrTitleRest;
    }

    
    /**
     * 获取标题 - 兑换率的提示
     *
     * <br>Created 2014-11-10 下午2:44:47
     * @return       mStrTitleRate
     * @author       zhangqr
     */
    public String getmStrTitleRate() {
        return mStrTitleRate;
    }

    
    /**
     * 设置标题 - 兑换率的提示
     *
     * <br>Created 2014-11-10 下午2:44:47
     * @param   mStrTitleRate    the mStrTitleRate to set
     * @author       zhangqr
     */
    public void setmStrTitleRate(String mStrTitleRate) {
        this.mStrTitleRate = mStrTitleRate;
    }

}
